package com.lmx.repoDomain.repository;

import io.katharsis.repository.annotations.JsonApiResourceRepository;
import io.katharsis.repository.annotations.JsonApiSave;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.lmx.repoDomain.tmodel.AssessmentIndicatorResult;

/**
 * 考核結果
 *
 * @author ytche
 * @date 2017年8月9日
 *
 */
@JsonApiResourceRepository(value = AssessmentIndicatorResult.class)
@Component
public class AssessmentIndicatorResultRepository extends
		BaseRepository<AssessmentIndicatorResult> {
	@Autowired
	private AssessmentIndicatorResultService service;

	@PostConstruct
	public void init() {
		super.dslJpaService.setEntityClass(AssessmentIndicatorResult.class);
	}

	@SuppressWarnings("unchecked")
	@Override
	@JsonApiSave
	public AssessmentIndicatorResult save(final AssessmentIndicatorResult entity) {
		return this.service.save(entity);
	}
}
